#ifndef __AT24C02_H__
#define __AT24C02_H__

#include "stm32f10x.h"                  // Device header
#include "string.h"
#include "main.h"


void AT24C02_WriteByte(unsigned char WordAddress,uint8_t Deta);
unsigned char AT24C02_ReadByte(unsigned char WordAddress);
void AT24C02_WritePage(unsigned char WordAddress,uint8_t* Data,uint8_t Length);
void AT24C02_ReadPage(unsigned char WordAddress,uint8_t* Data,uint16_t Length);
void M24C02_WriteOTAInfo(void);
void M24C02_ReadOTAInfo(void);

#endif

